package cn.xuguowen.user.designPatten.strategy.prod.handler;

import cn.xuguowen.user.designPatten.strategy.prod.PayChannelEnum;
import cn.xuguowen.user.designPatten.strategy.prod.PayHandler;
import org.springframework.stereotype.Component;

/**
 * ClassName: ZFB
 * Package: cn.xuguowen.user.designPatten.strategy.prod.handler
 * Description: 具体支付策略类——支付宝支付
 * 交给IOC容器进行管理
 * @Author 徐国文
 * @Create 2023/4/28 18:46
 * @Version 1.0
 */
@Component
public class ZFB implements PayHandler {
    @Override
    public PayChannelEnum getPayChannel() {
        return PayChannelEnum.ZFB_PAY;
    }

    @Override
    public void dealPay() {
        System.out.println("支付宝支付！");
    }
}
